﻿namespace VueAdminService.VO
{
	public class RequestAddPermissionVO
	{
		/// <summary>
		/// 权限名
		/// </summary>
		public string PermissionName { get; set; }
		/// <summary>
		/// 权限代码
		/// </summary>
		public string PermissionCode { get; set; }
		/// <summary>
		/// 权限url
		/// </summary>
		public string? Url { get; set; }
		/// <summary>
		/// 图标（适用于菜单）
		/// </summary>
		public string? Icon { get; set; }
		/// <summary>
		/// 排序号（适用于菜单）数字越小越靠前
		/// </summary>
		public int? Order { get; set; }
		/// <summary>
		/// 权限类型   menu或operator
		/// </summary>
		public string Type { get; set; } = "menu";
		/// <summary>
		/// 上级权限id
		/// </summary>
		public string? ParentId { get; set; }
	}
	public class RequestEditPermissionVO
	{
		/// <summary>
		/// 权限Id
		/// </summary>		
		public string PermissionId { get; set; }
		/// <summary>
		/// 权限名
		/// </summary>
		public string PermissionName { get; set; }
		/// <summary>
		/// 权限代码
		/// </summary>
		public string PermissionCode { get; set; }
		/// <summary>
		/// 权限url
		/// </summary>
		public string? Url { get; set; }
		/// <summary>
		/// 图标（适用于菜单）
		/// </summary>
		public string? Icon { get; set; }
		/// <summary>
		/// 排序号（适用于菜单）数字越小越靠前
		/// </summary>
		public int? Order { get; set; }
		/// <summary>
		/// 权限类型   menu或operator
		/// </summary>
		public string Type { get; set; } = "menu";
		/// <summary>
		/// 上级权限id
		/// </summary>
		public string? ParentId { get; set; }
	}
}
